﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Admin3000.Backend.Api.Migrations
{
    public partial class _3 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Images",
                table: "QRcode",
                newName: "PicturePath");

            migrationBuilder.AddColumn<string>(
                name: "PictureName",
                table: "QRcode",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.UpdateData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 1,
                columns: new[] { "CreatedTime", "UpdatedTime" },
                values: new object[] { new DateTime(2021, 8, 3, 14, 23, 20, 841, DateTimeKind.Local).AddTicks(6954), new DateTime(2021, 8, 3, 14, 23, 20, 843, DateTimeKind.Local).AddTicks(7629) });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "PictureName",
                table: "QRcode");

            migrationBuilder.RenameColumn(
                name: "PicturePath",
                table: "QRcode",
                newName: "Images");

            migrationBuilder.UpdateData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 1,
                columns: new[] { "CreatedTime", "UpdatedTime" },
                values: new object[] { new DateTime(2021, 7, 30, 9, 7, 21, 866, DateTimeKind.Local).AddTicks(6632), new DateTime(2021, 7, 30, 9, 7, 21, 868, DateTimeKind.Local).AddTicks(7843) });
        }
    }
}
